package com.excellence.service.impl;

import com.excellence.mapper.SpotMapper;
import com.excellence.pojo.Spot;
import com.excellence.service.SpotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沈秉璋
 * @ClassName SpotServiceImpl
 * @Description TODO
 * @date 2024/4/8 10:51
 * @Version 1.0
 */
@Service
public class SpotServiceImpl implements SpotService {
    @Autowired
    SpotMapper spotMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return spotMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Spot record) {
        return spotMapper.insert(record);
    }

    @Override
    public int insertSelective(Spot record) {
        return spotMapper.insertSelective(record);
    }

    @Override
    public Spot selectByPrimaryKey(Long id) {
        return spotMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Spot> selectAll() {
        return spotMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKeySelective(Spot record) {
        return spotMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Spot record) {
        return spotMapper.updateByPrimaryKey(record);
    }
}
